package IA.GA.editorial;

import org.jgap.Configuration;
import org.jgap.InvalidConfigurationException;
import org.jgap.impl.CrossoverOperator;
import org.jgap.impl.DefaultMutationRateCalculator;
import org.jgap.impl.MutationOperator;
import org.jgap.impl.WeightedRouletteSelector;


public class Config3 extends AbstractConfigFactory {

	@Override
	public void setParameters(Configuration conf)throws InvalidConfigurationException {
		CrossoverOperator operator = new CrossoverOperator(conf,2);
		conf.addGeneticOperator(operator);
		
		conf.addGeneticOperator(new MutationOperator(conf, 1000));
		
		conf.addNaturalSelector(new WeightedRouletteSelector(conf),true);
	}

}
